package org.jsets.fastboot.dsc.service;

import java.sql.Connection;
import java.util.List;
import java.util.Optional;
import javax.sql.DataSource;
import org.jsets.fastboot.dsc.model.dto.DataSourceConfigQuery;
import org.jsets.fastboot.dsc.model.entity.DataSourceConfig;
import org.springframework.cache.annotation.Cacheable;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 行政区划
 *
 * @author wangjie
 */
public interface IDataSourceConfigService extends IService<DataSourceConfig> {

	int updateEntity(DataSourceConfig entity);
	int deleteEntity(Long id);
	DataSourceConfig getEntity(Long id);
	Optional<DataSourceConfig> findByName(String name);
	Page<DataSourceConfig> selectPage(DataSourceConfigQuery criteria);
	List<DataSourceConfig> selectList(DataSourceConfigQuery criteria);
	void testing(DataSourceConfig entity);
	DataSource getInstance(Long id);
	Connection getConnection(Long id);
	
}